package com.yhh.xiaohongshuauth.controller;

import com.yhh.framework.biz.operationlog.aspect.ApiOperationLog;
import com.yhh.framework.common.response.Response;
import com.yhh.xiaohongshuauth.model.vo.verificationcode.SendVerificationCodeReqVO;
import com.yhh.xiaohongshuauth.service.VerificationCodeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Eason
 * @Date 2025-04-18 16:32
 * @PackageName:com.yhh.xiaohongshuauth.controller
 * @ClassName: VerificationCodeControllervv
 * @Description: TODO
 */
@RestController
@Slf4j
public class VerificationCodeController {
    @Autowired
    private VerificationCodeService verificationCodeService;

    @PostMapping("/verification/code/send")
    @ApiOperationLog(description = "发送短信验证码")
    public Response<?> send(@Validated @RequestBody SendVerificationCodeReqVO sendVerificationCodeReqVO) {
        return verificationCodeService.send(sendVerificationCodeReqVO);
    }

}
